<?php $this->load->view('do/include/header');?>


<!--div class="info">application/views/welcome_message.php</div>
<div class="important">application/views/welcome_message.php</div-->
<?php 

	$this->load->view('do/add_things_view');
	echo '<hr />';
	echo '<table border="0" cellpadding="4" cellspacing="0"><thead><tr><th id="things" >things</th><th id="operate" colspan="4">operation</th></tr></thead><tbody>';

	foreach ($query as $q) {
		echo '<tr><td>' .$q['content'] .'</td>';
		echo '<td><a href="doit/view/' . $q['id'] .'">view</a></td>';
		echo '<td><a href="doit/edit/' . $q['id'] .'">edit</a></td>';
		echo '<td><a href="doit/delete/' . $q['id'] .'">delete</a></td>';
		echo '<td><a href="doit/archive/' . $q['id'] .'">archive</a></td>';
		echo '</tr>';
	}
	echo '</table>';
?>

<?php $this->load->view('do/include/footer');?>